<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>我的动态</title>
    <link rel="stylesheet" href="../css/dongtai.css" />
    <script type="text/javascript" src="../js/dongtai.js"></script>
</head>

<body>
<!--*************顶部导航条************************-->
<%@include file="../jsp/common/nav.jsp"%>
<!--******************我的动态************************--->
<div class="top">
    <img src="../images/${user1.userLogo}.jpg" />
</div>
<div class="name">
    <span class="username">
        ${user1.username}
    </span>
</div>
<!--主体-->
<section id="content">
    <!--头部-->
    <div class="content-header clearfix">
        <a href="javaScript:;" class="current">最新活动</a>
        <a href="javaScript:;" >加入的空间</a>
    </div>
    <!--内容-->
    <div class="content-body">
        <div class="dom" style="display: block">
            <c:forEach items="${discuss}" var="discuss">
                <div class="item">
                    <div class="s1">
                        <h4>${user1.username}</h4>
                        <span>发起了话题</span>
                        <span style="color:#000;font-weight:bold;"><a href="/discuss/discuss-space-search?id=${discuss.id}&space_id=${discuss.space.id}">${discuss.title}</a></span>
                    </div>
                    <span class="date"><fmt:formatDate value="${discuss.createdate}" pattern='yyyy年 MM月dd日 HH:mm:ss'/></span>
                </div>
            </c:forEach>
        <div class="dom">
            <c:forEach items="${space}" var="space">
                <div class="item">
                    <div class="s1">
                        <h4>${user1.username}</h4>
                        <span>加入了空间</span>
                        <span style="color:#000;font-weight:bold;"><a href="/space/spacename?userId=${user1.id}&name=${space.name}">${space.name}</a></span>
                    </div>
                    <span class="date"><fmt:formatDate value="${space.createdate}" pattern='yyyy年 MM月dd日 HH:mm:ss'/></span>
                </div>
            </c:forEach>
        </div>
    </div>
</section>
</body>
</html>
